package com.shjzit.loglib.db;


import android.content.Context;

public class DatabaseManager {

    private static final String TAG = "DatabaseManager";
    private LocalDatabase database;

    private static class SingletonHolder {
        private static final DatabaseManager INSTANCE = new DatabaseManager();
    }

    private DatabaseManager() {

    }

    public static DatabaseManager getInstance() {
        return SingletonHolder.INSTANCE;
    }

    public LocalDatabase getDatabase() {
        return database;
    }

    public void initDatabase(Context context) {
        database = LocalDatabase.create(context);
    }
}
